<template>
  <div class="box">
    <h2>Child component</h2>
    <p>
      来自父组件的count: {{count}} &nbsp;
      <button @click="increment(2)">更新父组件的数据</button>
    </p>
    
  </div>
</template>

<script>
export default {
  name: 'Child',
  props: {
    count: Number,
    increment: Function,
  }
}
</script>

<style scoped>

</style>
